package xna.android;

public class Vector2 {
	public float x;	
	public float y;
	
	public Vector2()
	{
		
	}
	public Vector2(float x, float y)
	{
		this.x = x;
		this.y = y;
	}
	public void setVector2(Vector2 v)
	{
		this.x = v.x;
		this.y =v.y;
	}
	public static Vector2 Zero()
	{
		return new Vector2(0,0);
	}
	// --- nao testado
	public static float Distance(Vector2 v1, Vector2 v2){
		float dx = (v1.x - v2.x);
		float dy = (v1.y - v2.y);
		float dxDy = (dx*dx) + (dy*dy);
		
		return (float) Math.sqrt(dxDy);
	}
	
}
